package top.fangw.tenant.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.fangw.common.core.result.Result;
//import top.fangw.common.oauth.util.AccessTokenUtils;

/**
 * @description: 测试controller
 * @author: fgw
 * @createDate: 2023/11/19
 */

@Tag(name = "测试")
@RestController
@RequestMapping("/test")
@RequiredArgsConstructor
public class TestController {


    @Operation(summary ="wap-hello测试")
    @GetMapping("/")
    @Cacheable(value = "test",key = "#root.methodName")
    public Result<?> hello(){
//        redisTemplate.opsForValue().set("test","test");
//        JSONObject jwtPayload = AccessTokenUtils.getJwtPayload();
        return Result.success("请求成功");
    }
}
